package com.leetcode.multithreading.licm.retry;

/**
 * @description:
 * @author: licm
 * @create: 2021-08-12 19:28
 **/
public interface Task {

    void run() throws Exception;

    default void retryFailed(Throwable e) {
    }

    /**
     * 若想记录完整信息可以将信息转化成json
     * @return
     */
    default Object snapshot() {
        return null;
    }

}
